var my_a=document.getElementById("my_account");
var changeColor=my_a.previousElementSibling.children[1].children[0].children[1].children[3].children[0];
changeColor.style.color="#ff8020";

(function(){
 ajax({
  url:"http://localhost:3000/useraccount/getinformation",//user是服务器中挂载""中的路径名称
  type:"get",
  //data:,
  dataType:"json" //自动JSON.parse()
}).then(function(result){
    console.log(result)
    if(result.code==0){
      alert(result.msg);
      location.href="login.html"
    }else if(result.code==1){
      var money=result.msg[0].userAccount;
      var uname=document.getElementById("uname")
      var account=document.getElementById("account");
      account.innerHTML=money;
      uname.innerHTML=result.msg[0].uname
    }
  })
})()